package com.developer.platform.domain.service.impl;

import com.developer.platform.domain.repository.IUserRoleRepository;
import com.developer.platform.domain.service.IUserRoleService;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * @author ：qiaoliang
 * @date ：2020-11-05
 */
@Service
public class UserRoleServiceImpl implements IUserRoleService {

    private final IUserRoleRepository userRoleRepository;

    public UserRoleServiceImpl(IUserRoleRepository userRoleRepository) {
        this.userRoleRepository = userRoleRepository;
    }

    @Override
    public void save(Long userId, List<Long> roleIds) {
        userRoleRepository.save(userId, roleIds);
    }

}
